home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / irix / scripts / rcs / Lscoed < prev    next >
Encoding:
Text File  |  1994-08-02  |  833 b   |  35 lines

  1. #! /bin/csh
  2. #
  3. # $Id: Lscoed,v 1.2 93/08/20 13:51:17 carlson Exp $
  4. #
  5. # Lscoed    Provide a list of all files that are checked out of RCS.
  6. #
  7. # Revision History:
  8. #    $Log:    Lscoed,v $
  9. # Revision 1.2  93/08/20  13:51:17  carlson
  10. # Modified to provide list one file per line if stdout is a terminal,
  11. #   otherwise it si provided as a list on one line.
  12. # Revision 1.2  1993/05/12  17:05:30  chris
  13. # Added RCS symbols.
  14. # Modified to provide list one file per line if stdout is a terminal,
  15. #   otherwise it is provided as a list on one line.
  16. #
  17. #------------------------------------------------------------------------
  18.  
  19. set files = ""
  20.  
  21. if ( -e RCS && -d RCS ) then
  22.     foreach file ( * )
  23.     if ( -e RCS/$file,v ) set files = ($files $file)
  24.     end
  25. endif
  26.  
  27. if ( -t 1 ) then
  28.     foreach file ( $files )
  29.     echo $file
  30.     end
  31. else
  32.     echo $files
  33. endif
  34.